import com.flower.controller.StoreController;
import com.flower.pojo.Store;
import org.aspectj.apache.bcel.classfile.Code;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;
@Component
public class Storetest {

    @Autowired
    private StoreController storeController;

    @Test
    public void queryStore(){
        Map<String,Object> map=storeController.queryById(1);
        if (Integer.parseInt(map.get("code").toString())==200){
            System.out.println("成功");
            System.out.println(map.get("data"));
        }else{
            System.out.println("失败");
        }

    }
}
